.home {
  $f: 19.2;

  .banner {
    position: relative;
    &::before{
      content:'';
      display: block;
      position: absolute;
      left: 0;
      top:0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, .2);
    }
    img {
      width: 100%;
      display: block;
      object-fit: cover;
      height: 33vh;
    }
    .text{
      position: absolute;
      left: 0;
      width: 100%;
      bottom:30/$f+vw;
      color:white;
      padding: 0 200/$f+vw;
      .p1{
        font-size: 30/$f+vw;
        font-weight: 600;
        line-height: 1;
      }
      .des{
        font-size: 20/$f+vw;
        margin-top: 20/$f+vw;
        line-height: 1.3;
        font-weight: 200;
      }
    }
  }

  .nav_menu {
    background: #F5F5F5;
    padding: 0 200/$f+vw;
    display: flex;
    align-items: center;

    a {
      display: block;
      padding: 20/$f+vw 44/$f+vw;
      color: #222;
      font-size: 17/$f+vw;
      line-height: 1.2;
      transition: all 600ms;
      cursor: pointer;

      &:hover {
        background: #FFF;
        color: #E6001A;
      }
    }

    .on {
      background: #FFF;
      color: #E6001A;
    }

    span {
      width: 1px;
      height: 10/$f+vw;
      background: #CCC;
    }
  }

  .section {
    .s_top {
      margin: 60/$f+vw 230/$f+vw 120/$f+vw 230/$f+vw;
      display: flex;
      justify-content: space-between;
      align-items: center;

      .t {
        color: #000;
        font-size: 32/$f+vw;
      }

      .s_search {
        border-bottom: 3px solid #333;
        display: flex;
        padding: 15/$f+vw;
        align-items: center;

        p {
          color: rgba(51, 51, 51, 1);
          font-size: 15/$f+vw;
          margin: 0 50/$f+vw 0 30/$f+vw ;
        }

        input {
          color: rgba(51, 51, 51, 1);
          font-size: 15/$f+vw;
          width: 220/$f+vw;
          outline: none;
          border: none;
        }

        .btn {
          cursor: pointer;

          svg {
            display: block;
            width: 20/$f+vw;
          }
        }
      }
    }

    .list {
      margin: 0 130/$f+vw;

      .item {
        position: relative;
        display: flex;
        justify-content: flex-end;
        &:not(:last-child){
          margin-bottom: 80/$f+vw;
        }

        .name {
          position: absolute;
          left: 0;
          top: 0;
          font-size: 24/$f+vw;
        }

        .num {
          position: absolute;
          left: 180/$f+vw;
          top: 0;
          color: rgba(0, 0, 0, 0.03);
          font-size: 180/$f+vw;
          line-height: 0.77;
          letter-spacing: -3/$f+vw;
          font-weight: bold;
        }

        .box {
          background: #FFF;
          transition: all 600ms;
          display: flex;
          justify-content: space-between;
          .lb{
            width: 994/$f+vw;
            .swiper1{
              width: 100%;
              .pic {
                overflow: hidden;
                width: 100%;
                height: 500/$f+vw;
                display: flex;
                align-items: center;
                justify-content: center;
                img {
                 width: 100%;
                  display: block;
                  object-fit: contain;
                  transition: all 600ms;
                }
              }
            }
  
            .text {
              padding: 21/$f+vw 30/$f+vw;
  
              .d1 {
  
                .pname {
                  font-size: 20/$f+vw;
                }
              }
  
              .des {
                margin: 8/$f+vw 0 16/$f+vw 0;
                color: #666;
                line-height: 1.5;
                font-size: 16/$f+vw;
              }
  
              .more {
                display: flex;
                width: fit-content;
                align-items: center;
                color: #A0A0A0;
                font-size: 16/$f+vw;
  
                svg {
                  display: block;
                  margin-left: 10/$f+vw;
                }
              }
            }
            &:hover{
              .pic{
                img{
                  transform: scale(1.05);
                }
              }
            }
          }
          .rb{
             width: 230/$f+vw;
             margin-left: 20/$f+vw;
             height:690/$f+vw;
             position: relative;
             &:after {
              content: '';
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              height:80/$f+vw;
              background: linear-gradient(180deg, rgba(255,255,255,1) 50%,  rgba(255, 255, 255, .2) 100%);
              z-index: 2;
              pointer-events: none;
            }
    
            &:before {
              content: '';
              position: absolute;
              bottom: -5px;
              left: 0;
              width: 100%;
              height:130/$f+vw;
              background: linear-gradient(0deg, rgba(255, 255, 255, 0) -6%, rgba(255,255,255,.8) 90%);
              z-index: 2;
              transform: rotate(180deg);
              pointer-events: none;
            }
    
             .swiper2{
              width: 100%;
              height: 100%;
              .swiper-slide{
                .pic{
                  height: 126/$f+vw;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  border: 2px solid transparent;
                  transition: all 600ms;
                  cursor: pointer;
                  overflow: hidden;
                  img{
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    transition: all 600ms;
                  }
                }
                &:hover{
                  .pic{
                    img{
                      transform: scale(1.05);
                    }
                  }
                }
              }
              .swiper-slide-active{
                .pic{
                  border-color: #FB0000;
                }
              }
             }
          }
        }
      }
    }

    .pager {
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 80/$f+vw 0;
      .prev,
      .next {
        svg {
          display: block;
          width: 23/$f+vw;
        }
      }

      a {
        img {
          margin: 0 0 0 10px;
          display: block;
        }
      }

      a:nth-last-child(2) {
        img {
          margin: 0 10px 0 0;
        }
      }

      .nums {
        display: flex;
        margin: 0 1vw;

        a {
          color: rgba(139, 139, 139, 1);
          font-size: 20/$f+vw;
          padding: 0.1vw 0.5vw;
          margin: 0 0.2vw;

        }


        .active {
          color: #FB0000;
          border-bottom: 2px solid #FB0000;
          font-weight: 600;
        }
      }

      p {
        color: rgba(51, 51, 51, 1);
        font-size: 15/$f+vw;
        margin-left: 40/$f+vw;
      }
    }
  }
 

  @media screen and (max-width: 1024px) {
    .banner {
      img {
        height: 300px;
      }
    }

    .nav_menu {
      padding: 0;

      a {
        padding: 15px 10px;
        font-size: 14px;
      }

      span {
        height: 10px;
      }
    }

    .section{
      .s_top {
        flex-direction: column;
        margin: 30px  5%;
        .t {
          font-size: 24px;
          margin-bottom: 20px;
        }
  
        .s_search {
          padding: 10px;
          width: 100%;
  
          p {
            font-size: 16px;
            margin: 0 20px 0 15px;
          }
  
          input {
            font-size: 16px;
            width: 70%;
          }
  
          .btn {
            svg {
              width: 20px;
            }
          }
        }
      }
      .list{
       margin: 0 5%;
        .item{
          display: block;
          &:not(:last-child){
            margin-bottom: 30px;
          }
          .name{
            font-size: 18px;
            position: static;
          }
          .num{
            font-size: 100px;
            right:0;
            left: auto;
          }
          .box {
            width: 100%;
            margin-top: 60px;
            .lb{
              width:100%;
              .swiper1{
                .pic{
                  height: auto;
                }
              }
              .text {
                padding: 15px 10px;
  
                .d1 {
                  .pname {
                    font-size: 18px;
                  }
  
                  a {
                    padding: 5px 8px;
                    font-size: 12px;
  
                    svg {
                      width: 20px;
                      margin-right: 5px;
                    }
                  }
                }
  
                .des {
                  font-size: 14px;
                  margin: 15px 0;
                }
  
                .more {
                  font-size: 14px;
  
                  svg {
                    margin-left: 10px;
                  }
                }
              }
            }
            .rb{
              width: 200px;
              height: 300px;
              display: none;
            }
          }
        }
      }
      .pager {
        
        .prev,
        .next {
          svg {
            width: auto;
          }
        }
  
        .nums {
          margin: 0 10px;
  
          a {
            font-size: 16px;
            padding: 3px 5px;
            margin: 0 5px;
          }
        }
        p{
          font-size: 14px;
        }
      }
    }
  }
}